import { createApp } from "vue";
import axios from 'axios';
import App from "./App.vue";
// 全局引用ant-design-vue
import Antd from "ant-design-vue";
// 加载路由
import router from "./routes/index";
import store from "./store/index";
// 引用ant-design-vue组件库的样式
import "ant-design-vue/dist/antd.css";
// 全局引用 lego-bricks-sea 业务组件库
import LegoBricksSea from 'lego-bricks-sea'
// 导入lego-bricks-sea组件库样式
import 'lego-bricks-sea/dist/bundle.css'
import 'cropperjs/dist/cropper.css'
const app = createApp(App);
const baseBackendURL = 'http://182.92.168.192:8081';
axios.defaults.baseURL = `${baseBackendURL}/api/`;
// 注册 ant-design-vue
app.use(Antd).use(LegoBricksSea).use(router).use(store);
app.mount("#app");
